﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MauTK_Mang1
{
    public class Student : IComparable<Student>
    {
        private String mssv;

        public String Mssv
        {
            get { return mssv; }
            set { mssv = value; }
        }
        private String ten;

        public String Ten
        {
            get { return ten; }
            set { ten = value; }
        }
        private float dtb;

        public float Dtb
        {
            get { return dtb; }
            set { dtb = value; }
        }

        public Student(String mssv, String ten, float dtb)
        {
            this.mssv = mssv;
            this.ten = ten;
            this.dtb = dtb;
        }
        public int CompareTo(Student s)
        {
            return mssv.CompareTo(s.mssv);
        }
        public override string ToString()
        {
            return mssv + "|" + ten + "|" + dtb;
        }
    }
}
